package com.atguigu.day11.enumtest;

public enum Payment implements Payable{
    ALIPAY{
        @Override
        public void pay() {
            System.out.println("扫码支付");
        }
    },WECHAT{
        @Override
        public void pay() {
            System.out.println("扫码支付");
        }
    },CREDIT_CARD,DEPOSIT_CARD;
    public void pay() {
        System.out.println("输入卡号支付");
    }
}
